package com.chen.pspms.service;

import com.chen.pspms.entity.User;
import com.chen.pspms.utils.ApplicationException;

import java.util.List;

public interface UserService {
    public Integer save(User user) throws ApplicationException;
    public Integer delete(User user) throws ApplicationException;
    public User findyById(Integer id) throws ApplicationException;
    public User findyByAccount(String account) throws ApplicationException;
    public Integer update(User user) throws ApplicationException;
    public List<User> findyAll() throws ApplicationException;
}
